package oauth.utils;

 
import java.util.Calendar;
import java.util.Date;

public class DateUtils {
  
	public static boolean isNendRefreshToken(Date expiresOn) {
		
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(new Date());
		calendar.set(Calendar.HOUR,
				calendar.get(Calendar.HOUR) + 1);// 让日期加1
		if(calendar.getTime().after(expiresOn)) {
			return true;
		}
		
		
		return false;
	}
	
}
